package com.thoughtworks.AnnotationReader;

import java.util.Arrays;
import java.util.List;

/**
 * Created by yrzhang on 10/8/16.
 */

@Authors({@Author(name = "author1"),
        @Author(name = "author2")
})
public class Book2 {
    public List<Authors> getAuthorsName() {
        Authors[] authors=Book2.class.getAnnotationsByType(Authors.class);
        return Arrays.asList(authors);
    }
}

